#include <stdio.h>

int pnpoly(int npol, float *xp, float *yp, float x, float y)
{
    int i, j, c = 0;
    for ( i = 0, j = npol-1; i < npol; j = i++ )
    {
        if ((((yp[i] <= y) && (y < yp[j])) ||
            ((yp[j] <= y) && (y < yp[i]))) &&
            (x < (xp[j] - xp[i]) * (y - yp[i]) / (yp[j] - yp[i]) + xp[i]))
                c = !c;
    }
    return c;
}

int main( )
{
    float xp[ 100 ], yp[ 100 ], x, y;
    int n, i, m;
    while ( scanf("%d", &n) != EOF )
    {
        for ( i = 0; i < n; i++ )
            scanf("%d%d", &xp[ i ], &yp[ i ]);
        scanf("%d", &m);
        for ( i = 0; i < m; i++ )
        {
            scanf("%d%d", &x, &y);
            if ( pnpoly( n, xp, yp, x, y ) )
                printf("Yes\n");
            else
                printf("No\n");
        }
    }
    return 0;
}
